import { _decorator, Component, Node } from 'cc';
import { BaseView } from './BaseView';
const { ccclass, property } = _decorator;

@ccclass('Layer')
export abstract class Layer extends Component {

    public views:BaseView[] = [];


    hideAll(){
        this.node.children.forEach(item => {
            item.active = false
        })
    }
    abstract show(view: BaseView);
    abstract hide(view: BaseView);
    
}


